package com.happystudy.message;

public class SingleDataMessage extends BaseMessageModel {
    private Object data;

    public SingleDataMessage(Object data) {
        super("success!", true, 0, "");
        this.data = data;
    }

    public SingleDataMessage(String resultMsg, Boolean code, Integer errCode, String errMsg, Object data) {
        super(resultMsg, code, errCode, errMsg);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "SingleDataMessage{" +
                "data=" + data +
                '}';
    }
}
